<template>

</template>

<script>
  import axios from 'axios'
  import qs from 'qs'
    export default {
        name: "wxPayCallBack",
        data(){
          return{

          }
        },mounted(){
         console.log("oinfoxxx")
        axios.post('https://wenku.qikan.com:11000/admin/lib/wxPayCallBack',qs.stringify({'mobile':this.user.mobile,'pwd':this.newpass,'pwdAgain':this.newpassagain})
        )
          .then((response)=>{
            console.log(response.data);
            let result= response.data;
            if(result.code==1){
              this.pwdstate='已设置';
              this.isSetPassword=false;
              localStorage.removeItem("user");
              localStorage.setItem("user", JSON.stringify(result.data));
            }else{
              this.tipshow("设置密码失败！")
            }
          })
          .catch((error)=>{
            console.log(error)
          })

      }
    }
</script>

<style scoped>

</style>
